package com.ocom.common.vo.human;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class LeaveApplyDetailVo implements Serializable {
    private RawData rawData;

    private Param param;

    private List<FormatData> formatData;

    @Data
    public static class RawData{
        private Integer type;

        private BigDecimal days;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date startTime;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date endTime;

        private String reason;

        private String pic;

        private Integer status;
    }


    @Data
    public static class Param{
        private Integer type;

        private BigDecimal days;
    }

    @Data
    public static class FormatData{
        private Integer rowType;

        private String title;

        private String content;

        private String reason;
    }
}
